export default class CONST {
  /**
   * 订单状态
   */
  static ORDER_STATUS = {
    CREATE: {
      name: 'Created',
      title: '新订单'
    },
    READY_PAY: {
      name: 'ReadyPay',
      title: '待支付'
    },
    PAID: {
      name: 'Paid',
      title: '已支付'
    },
    CONFIRM: {
      name: 'Confirmed',
      title: '图片已传'
    },
    IN_PRODUCTION: {
      name: 'InProduction',
      title: '生产中'
    },
    DELIVERED: {
      name: 'Delivered',
      title: '已发货'
    },
    RECEIVED: {
      name: 'Received',
      title: '已签收'
    },
    FINISHED: {
      name: 'Finished',
      title: '已完成'
    },
    CANCELED: {
      name: 'Canceled',
      title: '已取消'
    }
  }

  static DELIVERY_COMPANY = [{
    code: 'shunfeng',
    title: '顺丰速运'
  },
  {
    code: 'yunda',
    title: '韵达快递'
  },
  {
    code: 'yuantong',
    title: '圆通速递'
  },
  {
    code: 'zhongtong',
    title: '中通快递'
  }, {
    code: 'shentong',
    title: '申通快递'
  }, {
    code: 'ems',
    title: 'EMS'
  },
  {
    code: 'youzhengguonei',
    title: '邮政快递包裹'
  }
  ]

  /**
   * 商品状态
   */
  static GOODS_TYPE = {
    PHOTO: {
      name: 'Photo',
      title: '相框/套装'
    },
    GALLERY: {
      name: 'Gallery',
      title: '相册'
    },
    VIRTUAL: {
      name: 'Virtual',
      title: '虚拟商品'
    }
  }

  /**
   * 商品价格类型
   */
  static GOODS_PRICE_TYPE = {
    PHOTO_STUDIO: {
      name: 'PhotoStudio',
      title: '影楼'
    },
    PHOTO_STUDIO_LEVEL: {
      name: 'PhotoStudioLevel',
      title: '影楼等级'
    }
  }

  /**
   * 商品状态
   */
  static GOODS_STATUS = {
    ON_SALE: {
      name: 'OnSale',
      title: '上架'
    },
    OFF_SHELF: {
      name: 'OffShelf',
      title: '下架'
    }
  }

  /**
   * 支付方式
   */
  static PAY_TYPE = {
    WECHAT_PAY: {
      name: 'WechatPay',
      title: '微信'
    },
    ALI_PAY: {
      name: 'AliPay',
      title: '支付宝'
    },
    BALANCE_PAY: {
      name: 'AccountBalance',
      title: '账户余额'
    },
    OFFLINE_PAY: {
      name: 'Offline',
      title: '线下'
    }
  }

  /**
   * 启用状态
   */
  static ACTIVE_STATUS = {
    TRUE: {
      name: 'True',
      title: '是',
      value: true
    },
    FALSE: {
      name: 'False',
      title: '否',
      value: false
    }
  }

  /**
   * 余额变动类型
   */
  static AMOUNT_CHANGE_TYPE = {
    RECHARGE: {
      name: 'Recharge',
      title: '充值'
    },
    CONSUME: {
      name: 'Consume',
      title: '消费'
    },
    RETURN: {
      name: 'Return',
      title: '退款'
    },
    OTHER: {
      name: 'Other',
      title: '其他'
    }
  }

  /**
   * 任务状态
   */
  static TASK_STATUS = {
    NEW: {
      name: 'NEW',
      title: '新任务',
      value: 0
    },
    PROCESS: {
      name: 'PROCESS',
      title: '进行中',
      value: 1
    },
    FINISH: {
      name: 'FINISH',
      title: '完成',
      value: 2
    },
    CANCEL: {
      name: 'CANCEL',
      title: '取消',
      value: -1
    }
  }
}
